﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="ShareMarking.Web.admin.EnterPrise.QrStore.Index" %>

<%@ Import namespace="ShareMarking.Systems.Service" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>列表</title>
<script type="text/javascript" src="/scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="/admin/js/layout.js"></script>
<link  href="/css/pagination.css" rel="stylesheet" type="text/css" />
<link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/scripts/swfupload/swfupload.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="/scripts/swfupload/swfupload.handlers.js"></script>

<script type="text/javascript">
    $(function () {
        $("#storeimport").click(function () {
            showAttachDialog();
        });
        //创建附件窗口
        function showAttachDialog(obj) {
            var objNum = arguments.length;
            var attachDialog = $.dialog({
                id: 'storeimport',
                lock: true,
                max: false,
                min: false,
                title: "导入门店信息",
                content: 'url:EnterPrise/QrStore/storeimport.aspx',
                width: 670,
                height: 242
            });
        }

        $("#storeshixiao").click(function () {
            showAttachDialog2();
        });
        //创建附件窗口
        function showAttachDialog2(obj) {
            var objNum = arguments.length;
            var attachDialog = $.dialog({
                id: 'storeshixiao',
                lock: true,
                max: false,
                min: false,
                title: "导入门店信息",
                content: 'url:EnterPrise/QrStore/storeshixiao.aspx',
                width: 670,
                height: 242
            });
        }

    });
</script>

<script src="../../../scripts/jquery/jquery.lazyload.min.js" type="text/javascript"></script>
<script>
    $(function () {
        $("img").lazyload({ effect: "fadeIn" });
    });
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
  <a href="/admin/center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div class="toolbar-wrap">
  <div id="floatHead" class="toolbar">
    <div class="l-list">
        <ul class="icon-list">
            <li><a class="add" href="Action.aspx?action=<%=ShareMarking.Systems.Service.DTEnums.ActionEnum.Add  %>"><i></i><span>新增</span></a></li>
            <li><a id="storeimport" class="save" href="javascript:"><i></i><span>导入门店信息</span></a></li>
            <li><a id="storeshixiao" class="save" href="javascript:"><i></i><span>导入失效门店信息</span></a></li>
            <li>
                <asp:LinkButton ID="sync" runat="server" CssClass="save" OnClick="sync_click" >
                    <i></i><span>同步二维码</span>
                </asp:LinkButton>
            </li>
            <li>
                <asp:LinkButton ID="btnExport" runat="server" CssClass="save" OnClick="btnDownload_Click" 
                    OnClientClick=" return ConfirmPostBack('btnExport','确定要导出吗？');"><i></i><span>导出所有门店信息</span>
                </asp:LinkButton>
            </li>
            <li>
                <asp:LinkButton ID="exportIMG" runat="server" CssClass="save" OnClick="exportIMG_Click" 
                    OnClientClick=" return ConfirmPostBack('exportIMG','确定要导出吗？');"><i></i><span>导出二维码图片</span>
                </asp:LinkButton>
            </li>
        </ul>
    <div class="menu-list">
  </div>
    </div>
    <div class="r-list">     
       <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" Text="请输入门店编码查询" onblur="this.style.color='#999';if (value ==''){value='请输入门店名称查询'}"
                    onfocus="this.style.color='#999';if (value !=''){value =''}" />
      <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" onclick="btnSearch_Click">查询</asp:LinkButton>
    </div>
  </div>
</div>
<!--/工具栏-->

<div class="det-list clearfix" style="display:none">
    <div class="group btm">
        <div class="control">
            <div class="title">门店名称</div>
            <asp:TextBox ID="txtPhone" runat="server" CssClass="input normal"></asp:TextBox>
        </div>
        <div class="control">
            <div class="title">所属省份</div>
            <asp:TextBox ID="TextBox1" runat="server" CssClass="input normal"></asp:TextBox>
        </div>
        <div class="btn-list" style="margin-left:10px">
            <asp:Button ID="btnDetailedSearch" runat="server" Text="搜索" CssClass="btn" OnClick="btnDetailedSearch_Click" />
            <%-- <input name="btnReturn" id="btn_return" type="button" value="重置" class="btn yellow"  />--%>
        </div>
    </div>
 </div>
<!--列表-->
<asp:Repeater ID="rptList" runat="server">
<HeaderTemplate>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
  <tr>
    <th width="4%">选择</th>
    <th width="8%">门店编号</th>
    <th width="8%">门店名称</th>
    <th width="8%">门店所属省份</th>
    <th width="8%">门店所属城市</th>
    <th width="8%">门店所属片区</th>
    <th width="8%">门店所属大区</th>
    <th width="8%">二维码</th>
<%--<th width="8%">创建时间</th>
    <th width="8%"></th>
    <th width="8%">操作</th>--%>
  </tr>
</HeaderTemplate>
<ItemTemplate>
  <tr>
    <td align="center">
      <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" style="vertical-align:middle;" />
      <asp:HiddenField ID="hidId" Value='<%#Eval("StoreCode")%>' runat="server" />
    </td>
    <td align="center"><%#Eval("StoreCode")%></td>
    <td align="center"><%--<a href="Action.aspx?action=<%#ShareMarking.Systems.Service.DTEnums.ActionEnum.Edit  %>&id=<%#Eval("StoreCode")%>">--%><%#Eval("S_Name")%></td>
    <td align="center"><%#Eval("S_Provinces")%></td>
    <td align="center"><%#Eval("S_City")%></td>
    <td align="center"><%#Eval("S_Area")%></td>
    <td align="center"><%#Eval("S_Region")%></td>
    <td align="center"><img style="width:80px;height:80px;" src='<%#GetQRCode(Eval("StoreCode").ToString())%>'/></td>
    <%-- <td align="center"><%#Eval("CreateOn")%></td>
    <td align="center"><%#Eval("ModifiedOn")%></td>
    <td align="center"><a href="Action.aspx?action=<%#ShareMarking.Systems.Service.DTEnums.ActionEnum.Edit  %>&id=<%#Eval("StoreCode")%>">修改</a></td>--%>
  </tr>
</ItemTemplate>
<FooterTemplate>
  <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"9\">暂无记录</td></tr>" : ""%>
</table>
</FooterTemplate>
</asp:Repeater>
<!--/列表-->

<!--内容底部-->
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" ontextchanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
  </div>
  <div id="PageContent" runat="server" class="default"></div>
</div>
<!--/内容底部-->
</form>
</body>
</html>
